﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SCCN.BLL;
using SCCN.Utility;

public partial class Admin_ResetPWD : ASPBaseClass
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void btnUpdate_Click(object sender, EventArgs e)
    { 
        string userPwd =this.txtOldPWD.Text;
        SysUserBLL bllSysUser = new SysUserBLL();
        SCCN.DAL.SC_SysUser obj = bllSysUser.UserLogin(UserName, userPwd);
        if (obj != null)
        {
            obj.UserPWD = this.txtNewPWD.Text;
            if (bllSysUser.Update(obj))
            {
                HttpHelper.Alert("更新成功！", Page);
            }
            else
            {
                HttpHelper.Alert("更新失败！", Page);
            }
        }
    }
}